#!/usr/bin/python3

# CGI处理模块
import cgi

# 创建 FieldStorage 的实例化
form = cgi.FieldStorage()

# 获取数据
color = form.getvalue('color')

print("""Content-type:text/html\n
<html>
<head>
<meta charset=\"utf-8\">
<title>hello</title>
</head>
<body bgcolor=\"%s\">
<h2>hello world</h2>
</body>
</html>""" % (color) )
